<?php

namespace App\Kuafu\Customer\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CustomerCodeEnum extends BaseCodeEnum
{
    const ERR_CUSTOMER_PARAM_VALID       = 414001;
    const ERR_CUSTOMER_DB_ADD            = 414002;
    const ERR_CUSTOMER_DB_SET            = 414003;
    const ERR_CUSTOMER_DB_DEL            = 414004;
    const ERR_CUSTOMER_DB_PATCH          = 414005;
    const ERR_CUSTOMER_ID_NOT_EXIST      = 414006;
    const ERR_CUSTOMER_NOT_BAND_MOBILE   = 414007;
    const ERR_CUSTOMER_BAND_MOBILE       = 414008;
    const ERR_MOBILE_IS_BAND             = 414009;
    const ERR_SEND_COUPON                = 414010;
    const ERR_CUSTOMER_ALREADY_RECEIVED  = 414011;
    const ERR_CUSTOMER_GET_USER_ID       = 414012;
    const ERR_CUSTOMER_GET_OPEN_ID       = 414013;
    const ERR_NOT_DATA                   = 414014;
    const ERR_LOGIN                      = 414015;
    const ERR_GET_CUSTOMER_COUPON_DETAIL = 414016;

    const CODE_TEXT = [
        self::ERR_CUSTOMER_PARAM_VALID       => "参数校验错误",
        self::ERR_CUSTOMER_DB_ADD            => "新增失败",
        self::ERR_CUSTOMER_DB_SET            => "编辑失败",
        self::ERR_CUSTOMER_DB_DEL            => "删除失败",
        self::ERR_CUSTOMER_DB_PATCH          => "上下架失败",
        self::ERR_CUSTOMER_ID_NOT_EXIST      => "ID记录不存在",
        self::ERR_CUSTOMER_NOT_BAND_MOBILE   => "请先绑定手机号码",
        self::ERR_CUSTOMER_BAND_MOBILE       => "绑定手机号失败",
        self::ERR_MOBILE_IS_BAND             => "该手机号码已经被绑定，请更换手机号码",
        self::ERR_SEND_COUPON                => '发放优惠券失败,请稍后重试',
        self::ERR_CUSTOMER_ALREADY_RECEIVED  => '您已经领取过了，请勿重新领取',
        self::ERR_CUSTOMER_GET_USER_ID       => '获取UserId为空',
        self::ERR_CUSTOMER_GET_OPEN_ID       => '获取OpenId为空',
        self::ERR_NOT_DATA                   => '暂无信息',
        self::ERR_LOGIN                      => '登陆失败',
        self::ERR_GET_CUSTOMER_COUPON_DETAIL => "获取用户优惠券详情失败"
    ];
}
